package com.reggie.console.dto;

/**
 * @author yth
 * @since 2023-06-11-1:40
 */
public abstract class BaseResultDTO<T> {

    /**
     * @return 结果是否成功
     */
    public abstract boolean isSuccess();

    public abstract String getCode();

    public abstract T getData();

    public abstract String getMsg();

    public void setCode(String code) {
        throw new UnsupportedOperationException();
    }

    public void setData(T data) {
        throw new UnsupportedOperationException();
    }

    public void setMsg(String msg) {
        throw new UnsupportedOperationException();
    }

}
